import { axiosRequest } from '@/utils/request'
import { dataModulePrefix } from '../../config'

/**
 * 运行中压停电事件列表查询
 * @param {*} param
 */
export const getYxzySjListPage = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdsj/listByPage`, '运行中压停电事件列表查询', 'POST', param)
}

/**
 * 根据ID查询运行中压停电事件
 * @param {*} param
 */
export const getYxzySjSingle = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdsj/getById`, '根据ID查询运行中压停电事件', 'GET', param)
}

/**
 * 运行中压停电事件删除
 * @param {*} param
 */
export const deleteYxzySj = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdsj/deleteBatch`, '运行中压停电事件删除', 'POST', param)
}

/**
 * 运行中压停电事件临时表保存、修改
 * @param {*} param
 */
export const saveYxzySjTemp = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdsj-temp/saveOrUpdate`, '运行中压停电事件临时表保存、修改', 'POST', param)
}

/**
 * 根据ID查询运行中压停电事件临时表
 * @param {*} param
 */
export const getYxzySjSingleTemp = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdsj-temp/getById`, '根据ID查询运行中压停电事件临时表', 'GET', param)
}

/**
 * 运行中压停电事件临时表提交正式表
 * @param {*} param
 */
export const commitYxzySjTemp = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdsj-temp/commit`, '运行中压停电事件临时表提交正式表', 'POST', param)
}

/**
 * 中压停电事件临时数据清除
 * @param {*} param
 */
export const cleanYxzySjTemp = (param) => {
    return axiosRequest(`${dataModulePrefix}/yx-zytdsj-temp/cleanTemp`, '中压停电事件临时数据清除', 'GET', param)
}
